package cn.lynch.bbs.domain;

import java.util.HashSet;
import java.util.Set;

public class Authority {
	
	private String id;
	
	private String name;
	
	private Set<Privilege> privileges = new HashSet<Privilege>(0);
	
	private Set<Role> roles = new HashSet<Role>(0);

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<Privilege> getPrivileges() {
		return privileges;
	}

	public void setPrivileges(Set<Privilege> privileges) {
		this.privileges = privileges;
	}

	public Set<Role> getRoles() {
		return roles;
	}

	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}

}
